# !/usr/bin/env python
# encoding: utf-8
# @File    : track.py
# @Time    : 2021/2/1
# @Author  : qiaowei
# @Version : 1.0
# @Email   : weiweiqiao@126.com
# @License : (C) Copyright 2013-2021
# @Brief   :


class Track(object):
    """
    数据类，保存数据的序号、线程号、数据

    """
    def __init__(self, index: int, thread_id: int, char: str):
        """
        根据传入的序号、线程号、数据初始化对象

        Args:
            index: 序号
            thread_id: 线程号
            char: 数据

        """
        self.__index = index
        self.__thread_id = thread_id
        self.__char = char

    @property
    def index(self):
        return self.__index

    @property
    def thread_id(self):
        return self.__thread_id

    @property
    def char(self):
        return self.__char
